<?php
function __autoload($name)
{
    if (strstr($name, 'Admin'))
    {
        include_once 'classes/'.$name.'.class.php';
    }
    else
    {
        include $_SERVER['DOCUMENT_ROOT'].'/includes/classes/'.$name.'.class.php';
    }
}

?>
